package com.leon.agent.biz.domain;

import com.leon.agent.common.annotation.Excel;
import com.leon.agent.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 第三方平台对象 biz_platform
 * 
 * @author leon_agent
 * @date 2025-05-23
 */
public class BizPlatform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** openID */
    @Excel(name = "openID")
    private String openId;

    /** appID */
    @Excel(name = "appID")
    private String appId;

    /** unionID */
    @Excel(name = "unionID")
    private String unionId;

    /** 公众号名称 */
    @Excel(name = "公众号名称")
    private String wechatMpName;

    /** 账号类型 数据字典：biz_platform_account_type */
    @Excel(name = "账号类型 数据字典：biz_platform_account_type")
    private String accountType;

    /** 主体类型 数据字典：biz_platform_principal_type */
    @Excel(name = "主体类型 数据字典：biz_platform_principal_type")
    private String principalType;

    /** 主体名称 */
    @Excel(name = "主体名称")
    private String principalName;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 是否删除 0否 1是 */
    @Excel(name = "是否删除 0否 1是")
    private Integer deleteFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setWechatMpName(String wechatMpName) 
    {
        this.wechatMpName = wechatMpName;
    }

    public String getWechatMpName() 
    {
        return wechatMpName;
    }
    public void setAccountType(String accountType) 
    {
        this.accountType = accountType;
    }

    public String getAccountType() 
    {
        return accountType;
    }
    public void setPrincipalType(String principalType) 
    {
        this.principalType = principalType;
    }

    public String getPrincipalType() 
    {
        return principalType;
    }
    public void setPrincipalName(String principalName) 
    {
        this.principalName = principalName;
    }

    public String getPrincipalName() 
    {
        return principalName;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("appId", getAppId())
            .append("unionId", getUnionId())
            .append("wechatMpName", getWechatMpName())
            .append("accountType", getAccountType())
            .append("principalType", getPrincipalType())
            .append("principalName", getPrincipalName())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("deleteFlag", getDeleteFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
